﻿using BusinessLogicLayer;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PresentationLayer
{
    public partial class ChiTietHoSoForm : Form
    {
        public ChiTietHoSoForm()
        {
            InitializeComponent();
        }
        public HoSoUngVien HoSoUV { get; set; }
        private void ChiTietHoSoForm_Load(object sender, EventArgs e)
        {
            this.txtHoUV.Text = HoSoUV.HoUngVien;
            this.txtTenUV.Text = HoSoUV.TenUngVien;
            this.txtCMND.Text = HoSoUV.CMND;
            this.txtDiaChi.Text = HoSoUV.DiaChi;
            this.txtEmail.Text = HoSoUV.Email;
            this.txtGioiTinh.Text = HoSoUV.TenGioiTinh;
            this.txtKinhNghiem.Text = HoSoUV.KinhNghiem;
            this.txtKNCN.Text = HoSoUV.KyNangChuyenMon;
            this.txtKNNN.Text = HoSoUV.KyNangNgoaiNgu;
            this.txtNVPV.Text = HoSoUV.HoTenPV;
            this.txtSDT.Text = HoSoUV.SoDienThoai;
            this.txtTrangThai.Text = HoSoUV.TrangThai;
            this.txtTrinhDoHV.Text = HoSoUV.TrinhDoHocVan;
            this.txtVTMongMuon.Text = HoSoUV.ViTriMongMuon;
            this.dtiNgayNop.Value = HoSoUV.NgayNop;
            this.dtiNgaySinh.Value = HoSoUV.NgaySinh;
            foreach (var item in HoSoUV.DuAnQuaKhus)
            {
                this.txtDACu.Text += item.TenDuAn + ". ";
            }
        }
    }
}
